package com.hr.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hr.mapper.AoaSysMenuMapper;
import com.hr.entity.AoaSysMenu;
import com.hr.service.AoaSysMenuService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * (AoaSysMenu)表服务实现类
 *
 * @author makejava
 * @since 2022-06-09 10:40:57
 */
@Service("aoaSysMenuService")
//@Transactional
public class AoaSysMenuServiceImpl extends ServiceImpl<AoaSysMenuMapper, AoaSysMenu> implements AoaSysMenuService {
    /**
     * 根据角色ID 获取该角色拥有的菜单列表
     * @param roleId 角色ID
     * @return
     */
    @Override
    public List<AoaSysMenu> queryListByRoleId(Long roleId) {
        //查询数据库
        return this.baseMapper.queryListByRoleId(roleId);
    }


}

